package Lex;

public class Token {
    private Symbol symbol;
    private int line;
    private String value;

    public Token(Symbol symbol, int line, String value) {
        this.symbol = symbol;
        this.line = line;
        this.value = value;
    }

    public Symbol getSymbol() {
        return symbol;
    }

    public void setSymbol(Symbol symbol) {
        this.symbol = symbol;
    }

    public int getLine() {
        return line;
    }

    public void setLine(int line) {
        this.line = line;
    }

    public String getValue() {
        return value;
    }

    public void setValue(String value) {
        this.value = value;
    }

    @Override
    public String toString() {
        return "Lex.Token{" +
                "symbol=" + symbol +
                ", line=" + line +
                ", value='" + value + '\'' +
                '}' + '\n';
    }
}
